package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class PostReaderBase{
	boolean[] modified=new boolean[3];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public PostReaderBase(){}
	public PostReaderBase(java.lang.Long postId,java.lang.Long readerId,java.lang.Long permission){
		setPostId(postId);
		setReaderId(readerId);
		setPermission(permission);
	}
	public void setPostId(java.lang.Long postId){
		if(postId!=null) {
			set("postId",postId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getPostId(){
		return (java.lang.Long)get("postId");
	}
	public void setReaderId(java.lang.Long readerId){
		if(readerId!=null) {
			set("readerId",readerId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getReaderId(){
		return (java.lang.Long)get("readerId");
	}
	public void setPermission(java.lang.Long permission){
		if(permission!=null) {
			set("permission",permission);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getPermission(){
		return (java.lang.Long)get("permission");
	}
}
